﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Toyger.UI
{
    public partial class FormServerSelect : Form
    {
        internal String SelectedServerType { get; set; }

        public FormServerSelect(String[] typeList)
        {
            InitializeComponent();
            this.cbTypes.Items.AddRange(typeList);
        }


        private void btOk_Click(object sender, EventArgs e)
        {
            if (cbTypes.SelectedItem != null)
            {
                SelectedServerType = cbTypes.SelectedItem.ToString();
            }
            this.DialogResult = DialogResult.OK;
            this.Visible = false;
        }
    }
}
